package uiLayer.uiUtilities;

import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Font;

import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;

public class WelcomeCard extends JPanel {

	/**
	 * Create the panel.
	 */
	public WelcomeCard() {
		setBorder(new EmptyBorder(100, 100, 100, 100));
		setLayout(new BorderLayout(0, 0));

		JPanel north = new JPanel();
		add(north, BorderLayout.NORTH);
		north.setLayout(new BoxLayout(north, BoxLayout.Y_AXIS));
		
		JLabel label = new JLabel("Velkommen til");
		label.setHorizontalTextPosition(SwingConstants.CENTER);
		label.setHorizontalAlignment(SwingConstants.CENTER);
		label.setFont(new Font("Tahoma", Font.PLAIN, 16));
		label.setBorder(new EmptyBorder(8, 0, 0, 0));
		label.setAlignmentX(0.5f);
		north.add(label);

		JPanel center = new JPanel();
		center.setBorder(new EmptyBorder(50, 0, 0, 0));
		add(center, BorderLayout.CENTER);
				center.setLayout(new BoxLayout(center, BoxLayout.Y_AXIS));
				
						JLabel lbl1 = new JLabel();
						center.add(lbl1);
						lbl1.setFont(new Font("Tahoma", Font.PLAIN, 24));
						lbl1.setAlignmentX(Component.CENTER_ALIGNMENT);
						lbl1.setHorizontalAlignment(SwingConstants.CENTER);
						lbl1.setText("DISPEASY");
		
				JLabel lbl3 = new JLabel("Disponeringssytem til");
				center.add(lbl3);
				lbl3.setBorder(new EmptyBorder(8, 0, 0, 0));
				lbl3.setFont(new Font("Tahoma", Font.PLAIN, 16));
				lbl3.setAlignmentX(Component.CENTER_ALIGNMENT);
				lbl3.setHorizontalTextPosition(SwingConstants.CENTER);
				lbl3.setHorizontalAlignment(SwingConstants.CENTER);
				
						JLabel lbl4 = new JLabel("Blue Water Shipping A/S");
						center.add(lbl4);
						lbl4.setBorder(new EmptyBorder(8, 0, 10, 0));
						lbl4.setHorizontalTextPosition(SwingConstants.CENTER);
						lbl4.setHorizontalAlignment(SwingConstants.CENTER);
						lbl4.setFont(new Font("Tahoma", Font.PLAIN, 16));
						lbl4.setAlignmentX(0.5f);

		JPanel south = new JPanel();
		add(south, BorderLayout.SOUTH);
		south.setLayout(new BoxLayout(south, BoxLayout.Y_AXIS));
		
		JLabel label_1 = new JLabel("Eksamens projekt - Dec. 2014");
		label_1.setHorizontalTextPosition(SwingConstants.CENTER);
		label_1.setHorizontalAlignment(SwingConstants.CENTER);
		label_1.setFont(new Font("Tahoma", Font.PLAIN, 14));
		label_1.setBorder(new EmptyBorder(8, 0, 0, 0));
		label_1.setAlignmentX(0.5f);
		south.add(label_1);

		JLabel lbl5 = new JLabel("Lavet af Gruppe 1:");
		lbl5.setHorizontalTextPosition(SwingConstants.CENTER);
		lbl5.setHorizontalAlignment(SwingConstants.CENTER);
		lbl5.setFont(new Font("Tahoma", Font.PLAIN, 14));
		lbl5.setBorder(new EmptyBorder(8, 0, 0, 0));
		lbl5.setAlignmentX(0.5f);
		south.add(lbl5);

		JLabel lbl6 = new JLabel("Bo M. S. Nielsen, Anders A. Pedersen og Mie Plougstrup");
		lbl6.setHorizontalTextPosition(SwingConstants.CENTER);
		lbl6.setHorizontalAlignment(SwingConstants.CENTER);
		lbl6.setFont(new Font("Tahoma", Font.PLAIN, 14));
		lbl6.setBorder(new EmptyBorder(8, 0, 0, 0));
		lbl6.setAlignmentX(0.5f);
		south.add(lbl6);


	}

}
